package com.exception;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 自定义异常模板
 */
@Data
@NoArgsConstructor
public class ErrorVM {
    private Integer code;
    private String message;
    private Object data;

    public ErrorVM(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public ErrorVM(Integer code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }
}